package com.turing.data.scripts.contract.transfer

import com.turing.data.vo.out.review.DependParamsVO
import com.turing.data.vo.out.review.TaskElementVO


/*
是否使用摊余成本法
* */

class IfAmortizedCostMethod_30198_10_transfer {

    static List< TaskElementVO.DrawResultVO > doConvert(List< TaskElementVO.DrawResultVO > resultVOs, DependParamsVO dependParams){

        if (resultVOs!=null && resultVOs.size()>0){
            for (int i = 0; i < resultVOs.size(); i++) {
                def childTaskSn = resultVOs.get(i).childTaskSn
                if(null == childTaskSn || childTaskSn == ""){
                    continue
                }
                String modelValue = resultVOs.get(i).getText()

                if (modelValue != null && modelValue != "") {
                    if (modelValue.contains("摊余成本")) {
                        resultVOs.get(i).setBusinessValue("是")
                        resultVOs.get(i).setType(1)
                    }
                }else {
                    resultVOs.get(i).setBusinessValue("否")
                    resultVOs.get(i).setType(1)
                }
            }
        }

        return resultVOs
    }


}
